<div id="loc_info" style="background:none repeat scroll 0 0 #FFF6ED;padding:10px;">
	<script type="text/javascript">
		$(document).ready(function(){
			var totalRateScore = parseInt($(".page_variable div[var_name='info']").attr("total_rate_score"));
			var rateCount = parseInt($(".page_variable div[var_name='info']").attr("rate_count"));
			if (rateCount == 0) $("#rate_score").html("暂无");
			else $("#rate_score").html(Math.round(100.0 * totalRateScore / rateCount) / 100.0 + "（来自" + rateCount + "位用户）");
			% if c.loginUser != None :
				var myRating = parseInt($(".page_variable div[var_name='info']").attr("my_rating"));
				$("#rater").rater("/map/addSchoolMapLocRating", {curvalue : ${c.myRating}, getParameter : {id : $(".page_variable div[var_name='info']").attr("maploc_id")}}, updateRating);
				function updateRating(rating){
					if (myRating == 0) rateCount ++;
					totalRateScore = totalRateScore - myRating + parseInt(rating);
					myRating = rating;
					$("#rate_score").html(Math.round(100.0 * totalRateScore / rateCount) / 100.0 + "（来自" + rateCount + "位用户）");
					$("#rater").html("");
					$("#rater").rater("/map/addSchoolMapLocRating", {curvalue : rating, getParameter : {id : $(".page_variable div[var_name='info']").attr("maploc_id")}}, updateRating);
				}
			% endif
		});
	</script>
	<style type="text/css">
		.table_loc_info .label{width:80px;padding-right:20px;font-weight:bold;color:#E07265;text-align:right;}
	</style>
	<table class="table_loc_info">
		<tbody>
			<tr>
				<td class="label">地址：</td>
				<td>${c.maploc.address}</td>
			</tr>
			<tr>
				<td class="label">评分：</td>
				<td id="rate_score"></td>
			</tr>
			% if c.loginUser != None :
				<tr>
					<td class="label">我的评分：</td>
					<td><div id="rater"></div></td>
				</tr>
			% endif
		 </tbody>
	</table>
</div>